//
// Created by wuzhe on 2022/4/19.
//

#include "Utils.h"
#include <sstream>

std::string JJ::Utils::getCurrentTime() {
    auto now = std::chrono::system_clock::now();
    auto timet = std::chrono::system_clock::to_time_t(now);
    auto localTime = std::gmtime(&timet);
    std::stringstream ss;
    ss << std::put_time(localTime, "%Y-%m-%dT%H:%M:%S");
    return ss.str();
}
